<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		

		<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
	</head>
	<body>
		<div id="app">
			爱好:
			<input type="checkbox" v-model="likes" :value="options[0]"/>听音乐
			<input type="checkbox" v-model="likes" :value="options[1]"/>唱歌
			<input type="checkbox" v-model="likes" :value="options[2]"/>打游戏
			<input type="checkbox" v-model="likes" :value="options[3]"/>看电影
			<br>
			
			{{likes}}
		</div>
		
		<script>
			var app = Vue.createApp({
				data(){
					return {
						"message":"Hello Vue!",	
						"likes":[],
						"options":['听音乐','唱歌','打游戏','看电影']
					}
				}
			});
			var vm = app.mount("#app")	
		</script>
	</body>
</html>
